<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- Apple iOS and Android stuff (do not remove) -->
<meta name="apple-mobile-web-app-capable" content="no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />

<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1" />

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/reset.css"  media="screen" />
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/text.css"  media="screen" />
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/fonts/ptsans/stylesheet.css"  media="screen" />
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/fluid.css"  media="screen" />

<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/mws.style.css"  media="screen" />
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/icons/16x16.css"  media="screen" />
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/icons/24x24.css"  media="screen" />
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/icons/32x32.css"  media="screen" />

<!-- Theme Stylesheet -->
<link rel="stylesheet" type="text/css" href="/wowshi/App/Admin/Common/Template//css/mws.theme.css"  media="screen" />

<!-- JavaScript Plugins -->
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//js/jquery-1.7.2.min.js" ></script>
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//js/jquery.mousewheel.min.js" ></script>
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//js/jquery.placeholder.js" ></script>
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//js/jquery.fileinput.js" ></script>

<!-- jQuery-UI Dependent Scripts -->
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//jui/js/jquery-ui.js" ></script>
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//jui/js/jquery.ui.timepicker.js" ></script>
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//jui/js/jquery.ui.touch-punch.min.js" ></script>
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//plugins/spinner/ui.spinner.min.js" ></script>

<!-- Core Script -->
<script type="text/javascript" src="/wowshi/App/Admin/Common/Template//js/core/mws.js" ></script>
<title>猫耳网-网站管理后台</title>
</head>

<body>

	<!-- Header -->
	<div id="mws-header" class="clearfix">
    
    	<!-- Logo Container -->
    	<div id="mws-logo-container">
        
        	<!-- Logo Wrapper, images put within this wrapper will always be vertically centered -->
        	<div id="mws-logo-wrap">
            	<img src="/wowshi/App/Admin/Common/Template//images/mws-logo.png"  alt="mws admin" />
			</div>
        </div>
        
        <!-- User Tools (notifications, logout, profile, change password) -->
        <div id="mws-user-tools" class="clearfix">
        
        	<!-- Notifications -->
        	<div id="mws-user-notif" class="mws-dropdown-menu">
            	<a href="#" class="mws-i-24 i-alert-2 mws-dropdown-trigger">Notifications</a>
                
                <!-- Unread notification count -->
                <span class="mws-dropdown-notif">35</span>
                
                <!-- Notifications dropdown -->
                <div class="mws-dropdown-box">
                	<div class="mws-dropdown-content">
                        <ul class="mws-notifications">
                        	<li class="read">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="read">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        </ul>
                        <div class="mws-dropdown-viewall">
	                        <a href="#">View All Notifications</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Messages -->
            <div id="mws-user-message" class="mws-dropdown-menu">
            	<a href="#" class="mws-i-24 i-message mws-dropdown-trigger">Messages</a>
                
                <!-- Unred messages count -->
                <span class="mws-dropdown-notif">35</span>
                
                <!-- Messages dropdown -->
                <div class="mws-dropdown-box">
                	<div class="mws-dropdown-content">
                        <ul class="mws-messages">
                        	<li class="read">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="read">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        	<li class="unread">
                            	<a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        </ul>
                        <div class="mws-dropdown-viewall">
	                        <a href="#">View All Messages</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- User Information and functions section -->
            <div id="mws-user-info" class="mws-inset">
            
            	<!-- User Photo -->
            	<div id="mws-user-photo">
                	<img src="/wowshi/App/Admin/Common/Template/images/profile.jpg"  alt="User Photo" />
                </div>
                
                <!-- Username and Functions -->
                <div id="mws-user-functions">
                    <div id="mws-username">
                        Hello, John Doe
                    </div>
                    <ul>
                    	<li><a href="#">Profile</a></li>
                        <li><a href="#">Change Password</a></li>
                        <li><a href="index.html" >Logout</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- Start Main Wrapper -->
    <div id="mws-wrapper">
    
        <!-- Necessary markup, do not remove -->
        <div id="mws-sidebar-stitch"></div>
        <div id="mws-sidebar-bg"></div>
        
        <!-- Sidebar Wrapper -->
        <div id="mws-sidebar">
        
            <!-- Searchbox -->
            <div id="mws-searchbox" class="mws-inset">
                <form action="http://www.malijuthemeshop.com/themes/mws-admin/1.5/typography.html">
                    <input type="text" class="mws-search-input" />
                    <input type="submit" class="mws-search-submit" />
                </form>
            </div>
            
            <!-- Main Navigation -->
            <div id="mws-navigation">
                <ul>
    <li class="active"><a href="dashboard.html"  class="mws-i-24 i-home">Dashboard</a></li>
    <li>
        <a href="<?php echo U('Cate/index');?>"  class="mws-i-24 i-chart">分类管理</a>
        <ul>
            <li><a href="<?php echo U('Cate/index');?>">浏览分类</a></li>
            <li><a href="<?php echo U('Cate/add');?>">增加分类</a></li>
        </ul>
    </li>
    <li>
        <a href="<?php echo U('Drawercate/index');?>"  class="mws-i-24 i-chart">分类管理</a>
        <ul>
            <li><a href="<?php echo U('Drawercate/index');?>">浏览抽屉分类</a></li>
            <li><a href="<?php echo U('Drawercate/add');?>">增加抽屉分类</a></li>
        </ul>
    </li>
    <li>
        <a href="<?php echo U('Drawer/index');?>"  class="mws-i-24 i-chart">抽屉管理</a>
        <ul>
            <li><a href="<?php echo U('Drawer/index');?>">浏览抽屉</a></li>
            <li><a href="<?php echo U('Drawer/add');?>">增加抽屉</a></li>
        </ul>
    </li>
    <li>
        <a href="<?php echo U('Platform/index');?>"  class="mws-i-24 i-chart">平台管理</a>
        <ul>
            <li><a href="<?php echo U('Platform/index');?>">浏览平台</a></li>
            <li><a href="<?php echo U('Platform/add');?>">增加平台</a></li>
        </ul>
    </li>
    <li>
        <a href="<?php echo U('Goods/index');?>"  class="mws-i-24 i-chart">商品管理</a>
        <ul>
            <li><a href="<?php echo U('Goods/index');?>">浏览商品</a></li>
            <li><a href="<?php echo U('Goods/add');?>">增加商品</a></li>
        </ul>
    </li>
    <li><a href="table.html"  class="mws-i-24 i-table-1">Table</a></li>
    <li>
    <a href="#" class="mws-i-24 i-list">Forms</a>
    <ul>
    <li><a href="form_layouts.html" >Layouts</a></li>
    <li><a href="form_elements.html" >Elements</a></li>
    </ul>
    </li>
    <li><a href="widgets.html"  class="mws-i-24 i-cog">Widgets</a></li>
    <li><a href="typography.html"  class="mws-i-24 i-text-styling">Typography</a></li>
    <li><a href="grids.html"  class="mws-i-24 i-blocks-images">Grids &amp; Panels</a></li>
    <li><a href="gallery.html"  class="mws-i-24 i-polaroids">Gallery</a></li>
    <li><a href="error.html"  class="mws-i-24 i-alert-2">Error Page</a></li>
    <li>
    <a href="icons.html"  class="mws-i-24 i-pacman">
    Icons <span class="mws-nav-tooltip">2000+</span>
    </a>
    </li>
</ul>
            </div>            
        </div>
        
        <!-- Main Container Start -->
        <div id="mws-container" class="clearfix">
        
            <!-- Inner Container Start -->
            <div class="mws-panel grid_8">
                <div class="mws-panel-header">
                    <span><i class="icon-table"></i> 浏览抽屉分类</span>
                </div>
                <div class="mws-panel-body no-padding">
                    <table class="mws-datatable-fn mws-table">
                        <thead>
                            <tr>
                                <th>分类ID</th>
                                <th>分类名称</th>
                                <th>父ID号</th>
                                <th>分类路径</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php if(is_array($data)): foreach($data as $key=>$vo): ?><tr>
                                <td><?php echo ($vo['id']); ?></td>
                                <td><?php echo ($vo['cate_name']); ?></td>
                                <td><?php echo ($vo['pid']); ?></td>
                                <td><?php echo ($vo['cate_path']); ?></td>
                                <td>
                                <?php if($vo['status'] == 1): ?>可用
                                    <?php else: ?>
                                    不可用<?php endif; ?>
                                </td>
                                <td><a style="color:black;padding-left:5px;padding-right:5px;" href='<?php echo U('Drawercate/update','cateid='.$vo['pid'].'&id='.$vo['id']);?>'>修改</a> | 
                                <?php if($vo['status'] == 1): ?><a style="color:black;padding-left:5px;padding-right:5px;" href='<?php echo U('Drawercate/delete_doit','cateid='.$vo['id']);?>' onclick="javascript:return confirm('确定要删除么');">禁用</a>
                                    <?php else: ?>
                                    <a style="color:black;padding-left:5px;padding-right:5px;" href='<?php echo U('Drawercate/active_doit','cateid='.$vo['id']);?>' onclick="javascript:return confirm('确定要启用么');">启用</a><?php endif; ?>
                                 | <a style="color:black;padding-left:5px;padding-right:5px;" href="<?php echo U('Drawercate/add','cateid='.$vo['id']);?>">增加子类</a></td>
                                </tr><?php endforeach; endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- Inner Container End -->
                       
            <!-- Footer -->
            <div id="mws-footer">
            	猫耳© 2015
            </div>
        </div>
        <!-- Main Container End -->
    </div>
</body>
</html>